package xin.marcher.module.replenished.converter;

import org.mapstruct.Mapper;
import xin.marcher.module.inventory.domain.request.WarningInventoryRequest;
import xin.marcher.module.inventory.domain.response.WarningInventoryDTO;
import xin.marcher.module.replenished.domain.bo.ProductSellerRelationBO;

import java.util.List;

/**
 * 商品可补 相关对象克隆
 *
 *
 */
@Mapper(componentModel = "spring")
public interface CompensationConverter {

    /**
     * 集合对象克隆
     *
     * @param list
     * @return
     */
    List<ProductSellerRelationBO> converterSellerList(List<ProductSellerRelationBO> list);

    /**
     * 对象克隆
     *
     * @param warningInventoryDTO
     * @return
     */
    WarningInventoryRequest converterRequest(WarningInventoryDTO warningInventoryDTO);
}
